package shiqi.AdapterPattern.Class;

import org.springframework.stereotype.Component;

//适配器类
@Component
public class DogAapter extends Dog implements Robot {
    @Override
    public void cry() {
        //System.out.println("机器人模仿：");
        super.wang();
    }

    @Override
    public void move() {
        //System.out.println("机器人模仿");
        super.run();
    }
}
